<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="拆件单" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-disabled="!btnPermission.splitAdd" ng-click="addData()">新增</button>
                    <button class="btn btn-operate m-r-sm" ng-click="delBatch()"
                            ng-disabled="!btnPermission.splitDel" title="{{!btnPermission.splitDel?'无权限执行此操作':''}}">删除</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                                ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.splitExport">
                            <div title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl" download-param="exportParam.sectionParam"
                                    download-key="ids">
                                    <i class="yb-icon ico-export-o"></i> 导出
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> 导出全部
                                </li>
                            </ul>
                        </div>

                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" ng-model="condition.splitOrder" placeholder="拆件单号">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)" reset-data="reset()" date-picker="true"  hide-date="switchDataPicker()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">拆件单号：</label>
                        <input type="text" name="saleNo" ng-model="condition.splitOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">拆件类型：</label>
                        <select class="form-control" ng-model="condition.splitType">
                            <option value="">请选择</option>
                            <option value="0">总成件</option>
                            <option value="1">整机</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">拆件状态：</label>
                        <select class="form-control" ng-model="condition.splitStatus">
                            <option value="">请选择</option>
                            <option value="0">未开始</option>
                            <option value="1">部分拆件</option>
                            <option value="2">已拆件</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">原件恢复状态：</label>
                        <select class="form-control" ng-model="condition.restoreStatus">
                            <option value="">请选择</option>
                            <option value="0">未恢复</option>
                            <option value="1">部分恢复</option>
                            <option value="2">已恢复</option>
                        </select>
                    </div>

                    <div class="form-group clearfix">
                        <label class="control-label">审核状态：</label>
                        <select class="form-control" ng-model="condition.auditStatus">
                            <option value="">请选择</option>
                            <option value="0">待审核</option>
                            <option value="1">第一步审核通过</option>
                            <option value="2">第一步审核拒绝</option>
                            <option value="3">第二步审核通过</option>
                            <option value="4">第二步审核拒绝</option>
                            <option value="5">第三步审核通过</option>
                            <option value="6">第三步审核拒绝</option>
                            <option value="7">第四步审核通过</option>
                            <option value="8">第四步审核拒绝</option>
                        </select>
                    </div>


                    <div class="form-group clearfix">
                        <label class="control-label">创建人：</label>
                        <input type="text" name="materialsNo" ng-model="condition.createName" class="form-control">
                    </div>

                    <div class="form-group clearfix m-b-none">
                        <label class="control-label">创建时间：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)" is-open="datePickerFlag[0]" close-text="关闭"
                               ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)" is-open="datePickerFlag[1]" close-text="关闭"
                               ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small" readonly>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tbConf" col-fixed="true"
                 has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <thead>
                            <tr>
                                <th width="40" class="th-check text-center border-l-none">
                                    <div yb-check-box yb-checked="markInfo.allCheckedBill" yb-click="selectAll(dataList, 'Bill')"></div>
                                </th>
                                <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-click="toSort(tableConfig.tableCol, $index)"
                                    ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tbConf.fixedWidth" fixed-width="tbStyle.fixedWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-click="toSort(tbConf.tableCol, $index)" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                ng-class="{'row-selected': $index === markInfo.curRow}">
                                <td width="40" class="text-center border-l-none">
                                    <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, dataList, 'Bill')"></div>
                                </td>
                                <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !!itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                    <span ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                    <div class="font-0" ng-if="itemCol.type === 'operate'">
                                        <button class="btn btn-operate m-r-xs" ng-click="editData(item)"
                                                ng-disabled="item.auditStatus === 1 || item.auditStatus === 3 || item.auditStatus === 5 || item.auditStatus === 7 || item.splitStatus > 0 || !btnPermission.splitEdit" title="{{!btnPermission.splitEdit?'无权限执行此操作':''}}">编辑</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="delSign(item.id)"
                                                ng-disabled="(item.auditStatus === 5 && item.splitType === 0) || (item.auditStatus === 7 && item.splitType === 1) || item.splitStatus > 0 || !btnPermission.splitDel" title="{{!btnPermission.splitDel?'无权限执行此操作':''}}">删除</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="printBill(item)"
                                                ng-disabled="!btnPermission.splitPrint">打印</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="viewAudit(item.id)"
                                                ng-disabled="item.auditStatus !== 0 || !btnPermission.splitFirstAudit" title="{{!btnPermission.splitFirstAudit?'无权限执行此操作':''}}">第一步审核</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="viewAudit(item.id)"
                                                ng-disabled="item.auditStatus !== 1 || !btnPermission.splitSecondAudit" title="{{!btnPermission.splitSecondAudit?'无权限执行此操作':''}}">第二步审核</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="viewAudit(item.id)"
                                                ng-disabled="item.auditStatus !== 3 || !btnPermission.splitThirdAudit" title="{{!btnPermission.splitThirdAudit?'无权限执行此操作':''}}">第三步审核</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="viewAudit(item.id)"
                                                ng-disabled="item.auditStatus !== 5 || item.splitType === 0 || !btnPermission.splitFourthAudit" title="{{!btnPermission.splitFourthAudit?'无权限执行此操作':''}}">第四步审核</button>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                ng-class="{'row-selected': $index === markInfo.curRow}" >
                                <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                    title="{{item[itemCol.dataField]}}">
                                    <span ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                    <div class="font-0" ng-if="itemCol.type === 'operate'">
                                        <button class="btn btn-operate m-r-xs" ng-click="editData(item)"
                                                ng-disabled="item.auditStatus === 1 || item.auditStatus === 3 || item.auditStatus === 5 || item.auditStatus === 7 || item.splitStatus > 0 || !btnPermission.splitEdit" title="{{!btnPermission.splitEdit?'无权限执行此操作':''}}">编辑</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="delSign(item.id)"
                                                ng-disabled="(item.auditStatus === 5 && item.splitType === 0) || (item.auditStatus === 7 && item.splitType === 1) || item.splitStatus > 0 || !btnPermission.splitDel" title="{{!btnPermission.splitDel?'无权限执行此操作':''}}">删除</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="printBill(item)">打印</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="viewAudit(item.id)"
                                                ng-disabled="item.auditStatus !== 0 || !btnPermission.splitFirstAudit" title="{{!btnPermission.splitFirstAudit?'无权限执行此操作':''}}">第一步审核</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="viewAudit(item.id)"
                                                ng-disabled="item.auditStatus !== 1 || !btnPermission.splitSecondAudit" title="{{!btnPermission.splitSecondAudit?'无权限执行此操作':''}}">第二步审核</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="viewAudit(item.id)"
                                                ng-disabled="item.auditStatus !== 3 || !btnPermission.splitThirdAudit" title="{{!btnPermission.splitThirdAudit?'无权限执行此操作':''}}">第三步审核</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="viewAudit(item.id)"
                                                ng-disabled="item.auditStatus !== 5 || item.splitType === 0 || !btnPermission.splitFourthAudit" title="{{!btnPermission.splitFourthAudit?'无权限执行此操作':''}}">第四步审核</button>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedBill" yb-check-name="全选"
                     yb-click="selectAll(dataList, 'Bill')"></div>
                <button class="btn btn-operate m-r-sm" ng-click="delBatch()"
                        ng-disabled="!btnPermission.splitDel" title="{{!btnPermission.splitDel?'无权限执行此操作':''}}">删除</button>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>

        <div tab heading="新增" active="activeFlag[1]" ng-click="changeTab(1)" ng-if="activeFlag[1]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">拆件单号：</label>
                    <div class="col-xs-8 control-label p-l-n text-left spill-dots">
                        -
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">申请人：</label>
                    <div class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{curUser.name}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">申请时间：</label>
                    <div class="col-xs-8 control-label p-l-n text-left spill-dots">
                       {{nowTime|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">拆件类型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="splitObj.headerInfo.splitType" checked value="0" yb-radio-name="总成件">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="splitObj.headerInfo.splitType" value="1" yb-radio-name="整机">
                    </label>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverTel" class="form-control" ng-model="splitObj.headerInfo.note" maxlength="100">
                    </div>
                </div>

            </form>

            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>总成件
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event,'showMaterielOriginal')">选择零件</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMaterielOriginal" ng-if="toolbarConfig.showMaterielOriginal"
                selected-list="splitObj.originalScriptList" ></div>
            <div class="main-area d-b-60" style="top:205px;height: 100px">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{originalScriptTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in originalScriptTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="originalScriptTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="splitObj.originalScriptList.length > 0">
                        <table class="table-fixed border-none" width="{{originalScriptTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in splitObj.originalScriptList track by $index">
                                <td ng-repeat="itemCol in originalScriptTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    class="spill-dots"
                                    title="{{item[itemCol.dataField]}}">
                                    <div class="spill-dots" ng-if="!itemCol.input">
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <span ng-if="!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                        </span>
                                    </div>

                                    <div ng-if="itemCol.input && itemCol.inputType === 'txt'" class="td-edit pos-r">
                                        <input type="text" class="form-control edit" ng-model="item[itemCol.dataField]"
                                               yb-number-input decimal-places="3" max="99999" min="1" maxlength="9" ng-init="item[itemCol.dataField]=1" disable-decimal="false" decimal-places="3">
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="splitObj.originalScriptList.length === 0">暂时没有数据</div>
                </div>
            </div>

            <div class="panel-bar clearfix m-t-110">
                <div class="pull-left">
                    <i></i>散件（子件）
                </div>
            </div>

            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event,'showMaterielDismantling')">选择零件</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMaterielDismantling" ng-if="toolbarConfig.showMaterielDismantling"
                is-purchase="true" dealer-id="orderObj.purchaseOrgId"
                selected-list="splitObj.beDisassembleList"></div>
            <div class="main-area d-b-60" style="top:390px;height: 400px">
                <div yb-table-fixed class="table-fixed-wrap" style="bottom: 40px">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{dismantlingScriptTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th width="60" class="border-l-none">
                                    操作
                                </th>
                                <th ng-repeat="itemCol in dismantlingScriptTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="dismantlingScriptTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="splitObj.beDisassembleList.length > 0">
                        <table class="table-fixed border-none" width="{{dismantlingScriptTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in splitObj.beDisassembleList track by $index">
                                <td width="60" class="font-0">
                                    <button class="btn btn-operate" ng-click="delChoosedMaterial($index)">删除</button>
                                </td>
                                <td ng-repeat="itemCol in dismantlingScriptTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    title="{{item[itemCol.dataField]}}">
                                    <div class="spill-dots" ng-if="!itemCol.input">
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <span ng-if="!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                        </span>
                                    </div>

                                    <div ng-if="itemCol.input && itemCol.inputType === 'txt'" class="td-edit pos-r">
                                        <input type="text" class="form-control edit"  ng-model="item[itemCol.dataField]"
                                               ng-change="checkStock(item)" yb-number-input decimal-places="3" max="99999" min="1" ng-init="item[itemCol.dataField]=1" maxlength="9" disable-decimal="false" decimal-places="3"
                                               ng-class="{'error': !!item.qtyErr}">
                                        <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                            <i class="triangle"></i>
                                            <div class="msg">{{item.qtyErrMsg}}</div>
                                        </div>
                                    </div>

                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="splitObj.beDisassembleList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData()">提交</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">取消</button>
            </div>

        </div>

        <div tab heading="查看" active="activeFlag[2]" ng-if="activeFlag[2]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-4 m-b-sm" ng-repeat="item in detailMap track by $index">
                    <label class="col-xs-6 m-b-n text-right max-w-150">{{item.name}}：</label>
                    <div class="col-xs-6 wrapper-none spill-dots" ng-if="!item.filter" title="{{detailObj.headerInfo[item.field]?detailObj.headerInfo[item.field]:'-'}}">
                        {{detailObj.headerInfo[item.field]?detailObj.headerInfo[item.field]:'-'}}
                    </div>
                </div>
            </div>
            <div tabset type="sub-tab">
                <div tab heading="总成件信息" active="subTabFlag[0]">
                    <div class="main-area d-b-60" style="top:290px;">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="{{detailOrigTbConf.scrollWidth}}">
                                    <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in detailOrigTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                            <div yb-thead-operate ng-model="itemCol" target-width="detailOrigTbConf.scrollWidth"></div>
                                        </th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll" ng-show="detailObj.originalDetailList.length > 0">
                                <table class="table-fixed border-none" width="{{detailOrigTbConf.scrollWidth}}">
                                    <tbody>
                                    <tr ng-repeat="item in detailObj.originalDetailList track by $index">
                                        <td class="spill-dots" ng-repeat="itemCol in detailOrigTbConf.tableCol track by $index" width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                            {{item[itemCol.dataField]}}
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="no-data w-full text-center p-t" ng-show="detailObj.originalDetailList.length === 0">
                                暂时没有数据
                            </div>
                        </div>
                    </div>
                </div>
                <div tab heading="散件（子件）信息" active="subTabFlag[1]">
                    <div class="main-area d-b-60" style="top:290px;">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="{{detailBeDisaTbConf.scrollWidth}}">
                                    <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in detailBeDisaTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                            <div yb-thead-operate ng-model="itemCol" target-width="detailOrigTbConf.scrollWidth"></div>
                                        </th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll" ng-show="detailObj.beDismantlingDetailList.length > 0">
                                <table class="table-fixed border-none" width="{{detailBeDisaTbConf.scrollWidth}}">
                                    <tbody>
                                    <tr ng-repeat="item in detailObj.beDismantlingDetailList track by $index">
                                        <td class="spill-dots" ng-repeat="itemCol in detailBeDisaTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                            title="{{item[itemCol.dataField]}}">
                                            {{item[itemCol.dataField]}}
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="no-data w-full text-center p-t" ng-show="detailObj.beDismantlingDetailList.length === 0">暂时没有数据</div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default m-r-sm" ng-click="changeTab(0)">返回</button>
            </div>
        </div>

        <div tab heading="编辑" active="activeFlag[3]" ng-click="changeTab(3)" ng-if="activeFlag[3]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">拆件单号：</label>
                    <div class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{splitObj.headerInfo.splitOrder}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">申请人：</label>
                    <div class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{curUser.name}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">申请时间：</label>
                    <div class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{nowTime|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">拆件类型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="splitObj.headerInfo.splitType" checked value="0" yb-radio-name="总成件">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="splitObj.headerInfo.splitType" value="1" yb-radio-name="整机">
                    </label>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverTel" class="form-control" ng-model="splitObj.headerInfo.note" maxlength="100">
                    </div>
                </div>

            </form>

            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>总成件
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event,'showMaterielOriginal')">选择零件</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMaterielOriginal" ng-if="toolbarConfig.showMaterielOriginal"
                is-purchase="true" dealer-id="orderObj.purchaseOrgId"
                selected-list="splitObj.originalScriptList" replace-check="true"></div>
            <div class="main-area d-b-60" style="top:205px;height: 100px">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{originalScriptTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in originalScriptTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="originalScriptTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="splitObj.originalScriptList.length > 0">
                        <table class="table-fixed border-none" width="{{originalScriptTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in splitObj.originalScriptList track by $index">
                                <td ng-repeat="itemCol in originalScriptTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    class="spill-dots"
                                    title="{{item[itemCol.dataField]}}">
                                    <div class="spill-dots" ng-if="!itemCol.input">
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <span ng-if="!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                        </span>
                                    </div>

                                    <div ng-if="itemCol.input && itemCol.inputType === 'txt'" class="td-edit pos-r">
                                        <input type="text" class="form-control edit" ng-model="item[itemCol.dataField]"
                                               yb-number-input decimal-places="3" max="99999" min="1" maxlength="9" disable-decimal="false" decimal-places="3">
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="splitObj.originalScriptList.length === 0">暂时没有数据</div>
                </div>
            </div>

            <div class="panel-bar clearfix m-t-120">
                <div class="pull-left">
                    <i></i>散件（子件）
                </div>
            </div>

            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event,'showMaterielDismantling')">选择零件</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMaterielDismantling" ng-if="toolbarConfig.showMaterielDismantling"
                is-purchase="true" dealer-id="orderObj.purchaseOrgId"
                selected-list="splitObj.beDisassembleList" replace-or-retrofit-check="true"></div>
            <div class="main-area d-b-60" style="top:400px;height: 400px">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{dismantlingScriptTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th width="60" class="border-l-none">
                                    操作
                                </th>
                                <th ng-repeat="itemCol in dismantlingScriptTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="dismantlingScriptTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="splitObj.beDisassembleList.length > 0">
                        <table class="table-fixed border-none" width="{{dismantlingScriptTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in splitObj.beDisassembleList track by $index">
                                <td width="60" class="font-0">
                                    <button class="btn btn-operate" ng-click="delChoosedMaterial($index)">删除</button>
                                </td>
                                <td ng-repeat="itemCol in dismantlingScriptTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    title="{{item[itemCol.dataField]}}">
                                    <div class="spill-dots" ng-if="!itemCol.input">
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <span ng-if="!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                        </span>
                                    </div>

                                    <div ng-if="itemCol.input && itemCol.inputType === 'txt'" class="td-edit pos-r">
                                        <input type="text" class="form-control edit"  ng-model="item[itemCol.dataField]"
                                               ng-change="checkStock(item)" yb-number-input decimal-places="3" max="99999" min="1" maxlength="9" disable-decimal="false" decimal-places="3"
                                               ng-class="{'error': !!item.qtyErr}">
                                        <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                            <i class="triangle"></i>
                                            <div class="msg">{{item.qtyErrMsg}}</div>
                                        </div>
                                    </div>

                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="splitObj.beDisassembleList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData('edit')">提交</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">取消</button>
            </div>

        </div>

        <div tab heading="审核" active="activeFlag[4]" ng-click="changeTab(4)" ng-if="activeFlag[4]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb clearfix" novalidate>
                <div class="form-group col-xs-4 m-b-sm" ng-repeat="item in detailMap track by $index">
                    <label class="col-xs-6 m-b-n text-right max-w-150">{{item.name}}：</label>
                    <div class="col-xs-6 wrapper-none spill-dots" ng-if="!item.filter">
                        {{splitObj.headerInfo[item.field]?splitObj.headerInfo[item.field]:'-'}}
                    </div>
                </div>
            </form>

            <div class="panel-bar pos-a clearfix" style="left:0;right: 240px;">
                <div class="pull-left">
                    <i></i>总成件
                </div>
            </div>
            <div class="panel-bar pos-a clearfix" style="right: 0; width: 225px;">
                <div class="pull-left">
                    <i></i>审核意见
                </div>
            </div>

            <div class="main-area d-b-60" style="top:300px;right: 240px;height: 100px">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{originalScriptTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in originalScriptTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="originalScriptTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="splitObj.originalScriptList.length > 0">
                        <table class="table-fixed border-none" width="{{originalScriptTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in splitObj.originalScriptList track by $index">
                                <td ng-repeat="itemCol in originalScriptTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    class="spill-dots"
                                    title="{{item[itemCol.dataField]}}">
                                    <div class="spill-dots">
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <span ng-if="!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                        </span>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="splitObj.originalScriptList.length === 0">暂时没有数据</div>
                </div>
            </div>

            <div class="panel-bar clearfix m-t-170 pos-a" style="left:0;right: 240px;">
                <div class="pull-left">
                    <i></i>散件（子件）
                </div>
            </div>

            <div class="main-area d-b-60" style="top:470px;right: 240px;height: 400px">
                <div yb-table-fixed class="table-fixed-wrap" style="bottom: 100px;">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{dismantlingScriptTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in dismantlingScriptTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="dismantlingScriptTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="splitObj.beDisassembleList.length > 0">
                        <table class="table-fixed border-none" width="{{dismantlingScriptTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in splitObj.beDisassembleList track by $index">
                                <td ng-repeat="itemCol in dismantlingScriptTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    title="{{item[itemCol.dataField]}}">
                                    <div class="spill-dots">
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <span ng-if="!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                        </span>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="splitObj.beDisassembleList.length === 0">暂时没有数据</div>
                </div>
            </div>

            <div class="main-area d-b-100" style="top:300px; left: auto; width: 225px;">
                <div class="main-wrap p-b-lg over-flow-h">
                    <textarea yb-word-count max-size="100" name="auditNote" class="form-control full" ng-model="splitObj.headerInfo.remark"
                              ng-class="{'error': !splitObj.headerInfo.remark && submitted}" placeholder="审核意见"></textarea>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="audit(1, splitObj.headerInfo.id, splitObj.headerInfo.remark)">通过</button>
                <button type="button" class="btn btn-primary m-r-sm" ng-click="audit(2, splitObj.headerInfo.id, splitObj.headerInfo.remark)">拒绝</button>
                <button type="button" class="btn btn-default" ng-click="cancel(0)">取消</button>
            </div>

        </div>
    </div>
</div>